﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using HRModel;
using HRIBLL;
namespace HRUI.Controllers
{
    public class StudentController : Controller
    {

        public IStudentBLL StudentBLL { get; set; }
        [HttpGet]
        // GET: Student
        public ActionResult Add()
        {
            return View();
        }
        [HttpPost]
        public ActionResult Add(StudentDto sd)
        {
           int result= StudentBLL.Add(sd);
            if (result>0)
            {
                return Content("添加成功");
            }
            else
            {
                return Content("添加失败");
            }
        }
    }
}